/* alert.css - 新建文件 */
.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert {
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

.alert-icon {
    font-size: 18px;
}

.alert.info {
    background: #2196F3;
    border-left: 4px solid #1976D2;
}

.alert.success {
    background: #4CAF50;
    border-left: 4px solid #45a049;
}

.alert.error {
    background: #f44336;
    border-left: 4px solid #d32f2f;
}

.alert.warning {
    background: #ff9800;
    border-left: 4px solid #f57c00;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 确认对话框样式 */
.alert-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.confirm-box h4 {
    color: #ff4400;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.confirm-actions {
    margin-top: 20px;
    text-align: right;
}

.confirm-actions button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.confirm-actions .cancel-btn {
    background: #f5f5f5;
}

.confirm-actions .confirm-btn {
    background: #ff4400;
    color: white;
}